package org.niugang.fallback;

import org.niugang.service.UserService;
import org.springframework.stereotype.Component;



/**
 *
 * @author niugang
 * 指定的Feign客户端接口的服务降级类。fallback类必须实现这个Feign客户端注解的接口，并且是一个有效的spring
 * bean.(即类上添加@component)
 *
 */
@Component
public class UserServiceFallBack implements UserService {

	@Override
    public String getUserInfo() {
		return "query user info fail";
	}



	
}
